import request from '@/utils/request'

// 总数统计
export function getCountApi() {
    return request({
        url: '/sys/dashboard/amount/normal',
        method: 'get',
    })
}
// 硬件类型
export function getHardwareApi() {
    return request({
        url: '/sys/dashboard/amount/hardware',
    })
}
// 设备类型 在线离线
export function getDeviceApi() {
    return request({
        url: '/sys/dashboard/amount/type',
        method: 'get'
    })
}
// 收入
export function getIncomeApi(date, dateOperation) {
    return request({
        url: '/sys/dashboard/amount/income',
        method: 'get',
        params: { date, dateOperation }
    })
}
// 排名
export function getRank1Api(operation, subject) {
    return request({
        url: '/sys/dashboard/rank/increased',
        method: 'get',
        params: { operation, subject }
    })
}
// 排名
export function getRankApi(beginDate, endDate, subject, type) {
    return request({
        url: '/sys/dashboard/rank/increased/v2',
        method: 'get',
        params: { beginDate, endDate, subject, type }
    })
}